/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.system.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
* @website https://el-admin.vip
* @description /
* @author 王宇
* @date 2023-09-20
**/
@Data
public class CourseClassRequest implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private Long classId;

    @ApiModelProperty(value = "编辑编号")
    private String classNo;

    @ApiModelProperty(value = "班级名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "创建人")
    private String createby;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateby;

    @ApiModelProperty(value = "座位图")
    private String seatingMapImage;

    @ApiModelProperty(value = "课程编号")
    private String courseNo;

    @ApiModelProperty(value = "餐费")
    private BigDecimal meals;

    @ApiModelProperty(value = "是否需要审核打卡，0：不需要，1：需要")
    private Integer auditClock;

    private List<SignTime> signTimeList;


    @Data
    public static class SignTime{

        private String startTime;

        private String endTime;
    }
    public void copy(CourseClassRequest source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}